import request from '@/utils/request'
// 查询 轮播图列表
export function listCarousel(query) {
    return request({
        url: '/dts/wxPatternmaking/list',
        method: 'get',
        params: query
    })
}
// 查询 轮播图详细
export function getCarousel(id) {
    return request({
        url: '/dts/wxPatternmaking/' + id,
        method: 'get'
    })
}

// 新增 轮播图
export function addCarousel(data) {
    return request({
        url: '/dts/wxPatternmaking',
        method: 'post',
        data: data
    })
}

// 修改 轮播图
export function updateCarousel(data) {
    return request({
        url: '/dts/wxPatternmaking',
        method: 'put',
        data: data
    })
}

// 删除 轮播图
export function delCarousel(id) {
    return request({
        url: '/dts/wxPatternmaking/' + id,
        method: 'delete'
    })
}
